package com.zbkj.crmeb.chant.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zbkj.crmeb.store.response.StoreProductResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class DistributionResponse implements Serializable {

    @ApiModelProperty(value = "优惠券表ID")
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer merId;

    @ApiModelProperty(value = "分销模式（1人人分销  2指定订单数分销  3指定金额分销）")
    private Integer model;

    @ApiModelProperty(value = "适用商品（1全部商品, 2指定条件, 3指定商品）")
    private Integer applyType;

    @ApiModelProperty(value = "指定条件（json对象: 分类, 品牌, 发货地, 季节）")
    private String specifyConditions;

    @ApiModelProperty(value = "指定商品")
    private String specifyGoods;

    @ApiModelProperty(value = "达成条件（金额/订单数）")
    @TableField(value = "`condition`")
    private BigDecimal condition;

    @ApiModelProperty(value = "兜底返佣比例")
    private BigDecimal baseRebateRate;

    @ApiModelProperty(value = "一级返佣比例")
    private BigDecimal oneRebateRate;

    @ApiModelProperty(value = "二级返佣比例")
    private BigDecimal twoRebateRate;

    @ApiModelProperty(value = "提现最低金额")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "商品列表")
    private List<StoreProductResponse> products;

}